<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>话题管理</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
</head>
<style type="text/css">

</style>

<script type="text/javascript" src="${webRoot}/plug-in/ajaxfileupload/ajaxfileupload.js"></script>
<script type="text/javascript">

    $(function() {
        $('#cc').combotree({
            url : 'columnsController.do?setPFunction&selfId=${topicEntity.columns.columnsId}',
            width: 155,
            onSelect : function(node) {

                var pId = "";
                if(node.id != ""){
                    pId = node.id;
                }
                $("#pId").val(pId);

            }
        });

//        if($("#id").val() != "") {
//            $('#cc').combotree('disable');
//        }


        if($("#cc").val() == ""){
            $('#cc').combotree('setValue', '');
        }

    });

</script>
<body  scroll="no" >
<t:formvalid  formid="addformobj" dialog="true" usePlugin="password" layout="table" action="topicController.do?save" >
   <input id="topicId" name="topicId" type="hidden" value="${topicEntity.topicId}">

    <table  cellpadding="0" cellspacing="1" class="formtable">


        <tr>
            <td align="right" style="width: 130px;">
                <label class="Validform_label">
                    话题名称:
                </label>
            </td>
            <td class="value" style="width: 350px;">
                <%--ajaxurl="topicController.do?checkName&name=${topicEntity.name }"--%>
                <input class="inputxt" id="name"
                       value="${topicEntity.name}"  name="name" datatype='*'>
                <span class="Validform_checktip"></span>
            </td>

        </tr>
        <tr>
            <td align="right" >
                <label class="Validform_label">
                    标签:
                </label>
            </td>
            <td class="value" >
                <input id="cc" name="cc" value="${topicEntity.columns.columnsId}">
                <input type="hidden" id="pId" name="columns.columnsId" value="${topicEntity.columns.columnsId}"
                       datatype='*' nullmsg="请选择标签">
                <span class="Validform_checktip"></span>
            </td>


        </tr>

    </table>
</t:formvalid>


</body>

<script type="text/javascript">
</script>
</html>